package com.kotlin.library.injection.component

import android.app.Activity
import android.content.Context
import com.kotlin.library.injection.ActivityScope
import com.kotlin.library.injection.module.ActivityModule
import com.kotlin.library.injection.module.LifecycleProvidesModule
import com.trello.rxlifecycle.LifecycleProvider
import dagger.Component

/**
 *
 * USER: zjw
 * DATA: 2018/11/28 0028
 * TIME: 下午 6:38
 */
@ActivityScope
@Component(dependencies = arrayOf(AppComponent::class), modules = arrayOf(ActivityModule::class,LifecycleProvidesModule::class))
interface ActivityComponent {
    fun activity(): Activity
    fun context(): Context
    fun lifecycleProvider(): LifecycleProvider<*>
}